import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "homeView",
    component: () => import("../views/HomeView.vue")
  },
  {
    path: "/goods",
    name: "goods",
    component: () => import("../views/goods.vue")
  },
  {
    path: "/aboutUs",
    name: "aboutUs",
    component: () => import("../views/aboutUs.vue")
  },
  {
    path: "/goods",
    name: "goods",
    component: () => import("../views/goods.vue"),
  },
  {
    path: "/newss",
    name: "news",
    component: () => import("../views/news/newss.vue"),
  }
];

const router = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes,
});

export default router;
